﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="BMSQ.Admin.Order.List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="newslist_title">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="borderkuang">
            <tr>
                <td bgcolor="#FFFFFF" class="newstitle">订单列表
                </td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="newstitlebody">订单列表
                </td>
            </tr>
        </table>
    </div>
    <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
        <tr>
            <td align="left" class="tdbg">
                <b>订单号：</b>
                <asp:TextBox ID="txtOrderNumber" runat="server"></asp:TextBox>
                &nbsp;
                 <b>商家：</b>
                <asp:TextBox ID="txtVendor" runat="server"></asp:TextBox>
                &nbsp;
                <b>买家：</b>
                <asp:TextBox ID="txtUser" runat="server"></asp:TextBox>
                &nbsp;
                 <b>状态：</b>
                <asp:DropDownList ID="ddlStatus" runat="server">
                    <asp:ListItem Text="" Value="" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="未支付" Value="1" ></asp:ListItem>
                    <asp:ListItem Text="未发货" Value="2"></asp:ListItem>
                    <asp:ListItem Text="已发货" Value="3"></asp:ListItem>
                    <asp:ListItem Text="结案" Value="4"></asp:ListItem>
                </asp:DropDownList>
                &nbsp;
            </td>
            <td class="tdbg">&nbsp;&nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click"></asp:Button>

            </td>
            <td class="tdbg"></td>
        </tr>
    </table>
    <!--Search end-->
    <br />
    <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" CellPadding="3" OnPageIndexChanging="gridView_PageIndexChanging"
        BorderWidth="1px" DataKeyNames="Order_ID" OnRowDataBound="gridView_RowDataBound"
        AutoGenerateColumns="false" PageSize="10" RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
        <Columns>
            <asp:TemplateField ControlStyle-Width="30" HeaderText="选择">
                <ItemTemplate>
                    <asp:CheckBox ID="DeleteThis" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>

            <asp:BoundField DataField="Order_ID" HeaderText="Order_ID" SortExpression="Order_ID" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Buyer" HeaderText="Buyer" SortExpression="Buyer" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Vendor_ID" HeaderText="Vendor_ID" SortExpression="Vendor_ID" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Order_Code" HeaderText="Order_Code" SortExpression="Order_Code" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Created_Date" HeaderText="Created_Date" SortExpression="Created_Date" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Delivery_Type" HeaderText="Delivery_Type" SortExpression="Delivery_Type" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Delivery_Name" HeaderText="Delivery_Name" SortExpression="Delivery_Name" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Delivery_Phone" HeaderText="Delivery_Phone" SortExpression="Delivery_Phone" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Delivery_Address" HeaderText="Delivery_Address" SortExpression="Delivery_Address" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Receive_PreReceiveDateTimeFrom" HeaderText="Receive_PreReceiveDateTimeFrom" SortExpression="Receive_PreReceiveDateTimeFrom" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Receive_PreReceiveDateTimeTo" HeaderText="Receive_PreReceiveDateTimeTo" SortExpression="Receive_PreReceiveDateTimeTo" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Vender_GetGoodsDateFrom" HeaderText="Vender_GetGoodsDateFrom" SortExpression="Vender_GetGoodsDateFrom" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Vender_GetGoodsDateTo" HeaderText="Vender_GetGoodsDateTo" SortExpression="Vender_GetGoodsDateTo" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Pay_Type" HeaderText="Pay_Type" SortExpression="Pay_Type" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Pay_Status" HeaderText="Pay_Status" SortExpression="Pay_Status" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Order_Status" HeaderText="Order_Status" SortExpression="Order_Status" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Goods_Money" HeaderText="Goods_Money" SortExpression="Goods_Money" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Delivery_Money" HeaderText="Delivery_Money" SortExpression="Delivery_Money" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Pay_Date" HeaderText="Pay_Date" SortExpression="Pay_Date" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Receive_Date" HeaderText="Receive_Date" SortExpression="Receive_Date" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Closed_Date" HeaderText="Closed_Date" SortExpression="Closed_Date" ItemStyle-HorizontalAlign="Center" />

            <asp:HyperLinkField HeaderText="详细" ControlStyle-Width="50" DataNavigateUrlFields="Order_ID" DataNavigateUrlFormatString="Show.aspx?id={0}"
                Text="详细" />
            <%-- <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" DataNavigateUrlFields="Order_ID" DataNavigateUrlFormatString="Modify.aspx?id={0}"
                Text="编辑" />
            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" Visible="false">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                        Text="删除"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>--%>
        </Columns>
    </asp:GridView>
    <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
        <tr>
            <td style="width: 1px;"></td>
            <td align="left">
                <%--<asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" />--%>
            </td>
        </tr>
    </table>
</asp:Content>
